package com.learn.hibernatevalidator.chapter02.inheritance;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: liyf
 * @create: 2024-12-21 22:41
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class RentalCar extends Car {

    private String rentalStation;

    @NotNull
    public String getRentalStation() {
        return rentalStation;
    }
}
